[iPhone] Background color during flip view animation/transition?
Posted
by Rob S.
on Stack Overflow
See other posts from Stack Overflow
or by Rob S.
Published on 2010-05-24T18:17:51Z
Indexed on
2010/05/24
18:21 UTC
Read the original article
Hit count: 545
I have some pretty standing flipping action going on:
[UIView beginAnimations:@"swapScreens" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
[UIView setAnimationDuration:1.0];
[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[UIView commitAnimations];
To Apple's credit, this style of animation is amazingly easy to work with. Very cool, and I've been able to animate transitions, flips, fades etc. throughout the app very easily.
Question: During the flip transition, the background visible 'behind' the two views during the flip is white and I'd like it to be black. I've:
- Set the background of the containing view (
self.view
above) - no dice. I really thought that would work. - Set the background of each view to black - no dice. I didn't think this would work although you give different things a shot to understand better :)
- Google'd like crazy; keep landing on Safari-related listings.
Thanks in advance!
© Stack Overflow or respective owner